package com.yaorange.nongjt.service.impl;

import java.util.List;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;
import com.yaorange.nongjt.mapper.NjtDeviceCertificationInfoMapper;
import com.yaorange.nongjt.domain.NjtDeviceCertificationInfo;
import com.yaorange.nongjt.service.INjtDeviceCertificationInfoService;

/**
 * 打印机认证情况Service业务层处理
 * 
 * @author hzliu
 * @date 2025-09-27
 */
@Service
public class NjtDeviceCertificationInfoServiceImpl implements INjtDeviceCertificationInfoService 
{
    @Autowired
    private NjtDeviceCertificationInfoMapper njtDeviceCertificationInfoMapper;

    /**
     * 查询打印机认证情况
     * 
     * @param id 打印机认证情况主键
     * @return 打印机认证情况
     */
    @Override
    public NjtDeviceCertificationInfo selectNjtDeviceCertificationInfoById(Long id)
    {
        return njtDeviceCertificationInfoMapper.selectNjtDeviceCertificationInfoById(id);
    }

    /**
     * 查询打印机认证情况列表
     * 
     * @param njtDeviceCertificationInfo 打印机认证情况
     * @return 打印机认证情况
     */
    @Override
    public List<NjtDeviceCertificationInfo> selectNjtDeviceCertificationInfoList(NjtDeviceCertificationInfo njtDeviceCertificationInfo)
    {
        return njtDeviceCertificationInfoMapper.selectNjtDeviceCertificationInfoList(njtDeviceCertificationInfo);
    }

    /**
     * 新增打印机认证情况
     * 
     * @param njtDeviceCertificationInfo 打印机认证情况
     * @return 结果
     */
    @Override
    public int insertNjtDeviceCertificationInfo(NjtDeviceCertificationInfo njtDeviceCertificationInfo)
    {
        return njtDeviceCertificationInfoMapper.insertNjtDeviceCertificationInfo(njtDeviceCertificationInfo);
    }

    /**
     * 修改打印机认证情况
     * 
     * @param njtDeviceCertificationInfo 打印机认证情况
     * @return 结果
     */
    @Override
    public int updateNjtDeviceCertificationInfo(NjtDeviceCertificationInfo njtDeviceCertificationInfo)
    {
        return njtDeviceCertificationInfoMapper.updateNjtDeviceCertificationInfo(njtDeviceCertificationInfo);
    }

    /**
     * 批量删除打印机认证情况
     * 
     * @param ids 需要删除的打印机认证情况主键
     * @return 结果
     */
    @Override
    public int deleteNjtDeviceCertificationInfoByIds(Long[] ids)
    {
        return njtDeviceCertificationInfoMapper.deleteNjtDeviceCertificationInfoByIds(ids);
    }

    /**
     * 删除打印机认证情况信息
     * 
     * @param id 打印机认证情况主键
     * @return 结果
     */
    @Override
    public int deleteNjtDeviceCertificationInfoById(Long id)
    {
        return njtDeviceCertificationInfoMapper.deleteNjtDeviceCertificationInfoById(id);
    }
}
